import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import func from '@/utils/func.js'
import cache from '@/utils/token.js'
Vue.config.productionTip = false
App.mpType = 'app'
import uView from 'uview-ui'
Vue.use(uView)

import mpShare from '@/uni_modules/uview-ui/libs/mixin/mpShare.js'
Vue.mixin(mpShare)

// import userShare from '@/utils/uShare.js'
// Vue.mixin(userShare)

// import webSocektAll from '@/utils/webSocket.js'
// Vue.prototype.$webSocektAll = webSocektAll;

Vue.use(func);
Vue.prototype.$cache = cache;
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif